package com.spic.business.alarm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spic.business.alarm.domain.DeviceAlarmModel;
import com.spic.business.alarm.domain.DeviceInfoVo;
import com.spic.business.alarm.mapper.DeviceMapper;
import com.spic.business.alarm.service.DeviceService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 设备数据
 *
 * @author liujunyang
 * @version 1.0
 * @date 2021/7/2 14:15
 */
@Service
public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, DeviceAlarmModel>
        implements DeviceService {

    @Override
    public DeviceInfoVo getLowestDevice() {
        return this.baseMapper.getLowestDevice();
    }

    @Override
    public DeviceInfoVo getDeviceByDeviceName(String deviceName) {
        return this.baseMapper.getDeviceByDeviceName(deviceName);
    }

    @Override
    public List<DeviceInfoVo> getAllDeviceInfoVo() {
        return this.baseMapper.getAllDeviceInfoVo();
    }

    @Override
    public void saveBatchSql(List<DeviceAlarmModel> deviceAlarmModelList) {
        this.baseMapper.saveBatchSql(deviceAlarmModelList);
    }

}
